package org.ourgrid.common.internal.sender;

import org.ourgrid.common.internal.SenderIF;
import org.ourgrid.common.internal.response.LocalWorkerProviderReleaseResponseTO;

import br.edu.ufcg.lsd.commune.container.servicemanager.ServiceManager;
import br.edu.ufcg.lsd.commune.identification.ServiceID;

public class LocalWorkerProviderReleaseSender implements SenderIF<LocalWorkerProviderReleaseResponseTO> {

	public void execute(LocalWorkerProviderReleaseResponseTO response,
			ServiceManager manager) {
		ServiceID serviceID = ServiceID.parse(response.getStubAddress());
		
		manager.release(serviceID);
	}

}
